<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>原型链</title>
</head>
<body>
    <script>
    
        
        {

            function fn () {
                let obj = {name: 'ws'};
                return function () {
                    return obj.name + '-wang'
                }
            }

            fn.prototype = {
                constructor: fn,
                name: 'wzr'
            };

            console.log(fn.__proto__ === Function.prototype);
        

        }
    </script>
</body>
</html>